package vendas.dao;

import gminet.infra.dao.Filter;
import gminet.infra.toolkit.StringToolkit;

public class UserFilter extends Filter {

    private static final long serialVersionUID = -6967790142597239789L;

    private String firstDigit;

    private int idStatus;

    private int idPerfil;

    private int userId;

    private String userName;

    private String userEmail;

    public UserFilter() {
        super();
    }

    public boolean hasFirstDigit() {
        return StringToolkit.isFill(getFirstDigit());
    }

    public boolean hasIdStatus() {
        return getIdStatus() > 0;
    }

    public boolean hasUserId() {
        return getUserId() > 0;
    }

    public boolean hasUserName() {
        return StringToolkit.isFill(getUserName());
    }

    public boolean hasIdPerfil() {
        return getIdPerfil() > 0;
    }

    public boolean hasUserEmail() {
        return StringToolkit.isFill(getUserEmail());
    }

    public String getFirstDigit() {
        return firstDigit;
    }

    public void setFirstDigit(String firstDigit) {
        this.firstDigit = firstDigit;
    }

    public int getIdStatus() {
        return idStatus;
    }

    public void setIdStatus(int idStatus) {
        this.idStatus = idStatus;
    }

    public int getIdPerfil() {
        return idPerfil;
    }

    public void setIdPerfil(int idcodigoPerfil) {
        this.idPerfil = idcodigoPerfil;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

}
